﻿using System;
using System.Data;
using System.Configuration;

using System.Collections;
using System.Web;
using System.Web.Security;

using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Component;


public partial class BackEnd_TiGiaUSDVNDModify : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.txtVN.Text = TiGiaUSDVNDDB.GetObjectByid(1,true).VND.ToString();
    }
    public void cmdLuu_Click(object sender, System.EventArgs e)
    {
      Component.TiGiaUSDVND tg = new TiGiaUSDVND (KetNoiCSDL.session);
      tg.VND = ConvertType.ToFloat(this.txtVN.Text.Trim ());
      if (TiGiaUSDVNDDB.Save(tg) == 1)
        {
            this.lbMessage.Text = ConstString.capNhatTC;
        }
    }
}
